package com.jinmei.service;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.jinmei.model.Employee;


public interface EmployeeService {
	
	/**
	 * get employee by fnumber
	 * 
	 * @return
	 * @throws DataAccessException
	 */
	public Employee findEmployee(String fnumber) throws DataAccessException;

	/**
	 * get all employees
	 * 
	 * @return
	 * @throws DataAccessException
	 */
	public List<Employee> findAllEmployees() throws DataAccessException;
	
	
	/**
	 * get employee by fid
	 * 
	 * @return
	 * @throws DataAccessException
	 */
	public List<Employee> findEmployeeByfNumberAndName(String fNumber, String name) throws DataAccessException;
	
	public String sysncEmployee(String operFlg, Employee employee) throws DataAccessException;
}
